/**
 * @Title: FinallyWorks.java
 * @Package com.thinkinjava.exception
 * @Description: TODO
 * @author Nick
 * @date Jun 25, 2012 9:07:44 PM
 * @version V1.0
 */
package com.thinkinjava.exception;

public class FinallyWorks {
	static int count = 0;
	public static void main(String[] args) {
		while(true) {
			try {
				if (count++ == 0)
					throw new Exception();
				System.out.println("No exception");
			} catch (Exception e) {
				System.out.println("exception");
			} finally {
				System.out.println("In finally case");
				if(count == 2) break;
			}
		}
	}

}
